@import '../../style/theme.scss';

.header {
	width: 100%;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 110rpx;
	display: flex;
	flex-direction: column;
	/* 确保子元素垂直排列 */

	.tab-box {
		position: fixed;
		overflow-x: auto;
		/* 如果 tabs 总宽度超出屏幕宽度则允许水平滚动 */
		white-space: nowrap;
		/* 确保所有 tab 在一行显示 */
		left: 0;
		top: 20rpx;
		z-index: 9999;
		height: 80rpx;
		line-height: 80rpx;
		overflow: hidden;
		background-color: white;
		white-space: nowrap;
	}

	.tab-item {
		width: 20%;
		text-align: center;
		display: inline-block;
		color: black;
	}

	.tab-item.active {
		font-weight: bold;
	}

	.tab-content {
		margin-top: 80rpx;
		height: 100vh;
	}
}

.store-map {
	width: 100%;
	transition: all 0.5s;
	position: relative;

	.current-icon {
		width: 44rpx;
		height: 44rpx;
		position: absolute;
		right: 18rpx;
		bottom: 22rpx;
	}
}

.collapse-area {
	width: 100%;
	height: 70rpx;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 20rpx;
	color: $gray-text-color;

	.icon {
		width: 30rpx;
		height: 30rpx;
		margin-left: 10rpx;
	}
}

.store-list {
	width: 100%;
	box-sizing: border-box;
	background-color: #f8f8f8;
	transition: all 0.5s;

	.empty {
		margin-top: 30rpx;
		font-size: 20rpx;
		color: $gray-text-color;
		text-align: center;
	}

	.store-box {
		background-color: #ffffff;
		padding: 25rpx;
		margin: 14rpx 25rpx;
		display: flex;
		align-items: center;

		.info-area {
			flex: 1;
			border-right: 1rpx solid #eeeeee;

			.name {
				font-size: 28rpx;
				font-weight: bold;
				margin-bottom: 12rpx;
			}

			.info {
				font-size: 18rpx;
				color: $gray-text-color;
				margin-bottom: 12rpx;
			}

			.distance {
				display: inline-block;
				font-size: 18rpx;
				color: $gray-text-color;
			}
		}

		.location-area {
			height: 100%;
			margin-left: 25rpx;
			display: flex;
			flex-direction: column;


			.action-area {
				width: 112rpx;
				display: flex;
				justify-content: space-around;

				image {
					width: 80rpx;
					height: 80rpx;
				}
			}
		}
	}
}
